import java.util.Arrays;
import java.util.Scanner;

public class Test {
    public  int Add(int a,int b){
        return a+b;
    }

    public  Long Add(Long a,Long b){
        return a+b;
    }
    public  float Add(float a, float b){
        return a+b;
    }
    public  int Add(char a, char b,char c){
        return a+b+c;
    }

    public static void main(String[] args){



    }

    public static void main4(String[] args){
        String s3 = new String();
        
    }
    public static void main3(String[] args) {
        Student s1 = new Student();

        s1.age = 18;
        s1.sex = "女";
        s1.name = "杨承娟";

        s1.Doclass();
        s1.DoHomework();
        s1.Exam();
        s1.Eat();
    }

    public static void main2(String[] args){
        int[] arr1 = {1,2,3,4,5};
        int[] arr2 = new int[10];
        int[] arr3 = new int[]{1,2,3,4,5};

        System.out.println(arr1[3]);

        for (int i = 0; i < arr1.length; i++) {
            System.out.print(arr1[i] + " ");
        }
        for (int x:arr1) {
            System.out.println(x);
        }


        System.out.println("填充前：" + Arrays.toString(arr1));
        Arrays.fill(arr1,0,3,1);
        System.out.println("填充后：" + Arrays.toString(arr1));
        Arrays.fill(arr1,2);
        System.out.println("填充后：" + Arrays.toString(arr1));



    }

    public void main1(String[] args){
        System.out.println(12);
        System.out.println(2.5);
        System.out.println("hello word");
        System.out.println('A');
        System.out.println(true);
        System.out.println(false);

        System.out.println("------------------------------------------");

        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

        int a = 10;
        long b = 1000L;

        a = (int) b;
        b = a;
        System.out.println("------------------------------------------");
        System.out.println(1);
        System.out.printf("%d",2);
        System.out.print(3);
        System.out.println("------------------------------------------");


        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的名字");
        String name = scanner.nextLine();

        System.out.println("请输入你的年龄");
        int age = scanner.nextInt();

        System.out.println("请输入你的工资");
        float salary = scanner.nextFloat();

        System.out.println("你的信息如下");
        System.out.println("姓名" + name + "\n" + "年龄" + age + "\n" + "工资" + salary);
        scanner.close();


        System.out.println("------------------------------------------");

        System.out.println(this.Add(2, 4));
        System.out.println(Add(3.1f, 22.2f));
        System.out.println(Add('a', 'e', 'w'));
        System.out.println(Add(2L, 1L));

        System.out.println("------------------------------------------");






    }
}
